home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.20-15 / debian / rules < prev    next >
Encoding:
Text File  |  2007-04-15  |  3.4 KB  |  98 lines

  1. #! /usr/bin/make -f
  2. ############################ -*- Mode: Makefile -*- ###########################
  3. ## debian.rules ---
  4. ## Author        : Manoj Srivastava ( srivasta@pilgrim.umass.edu )
  5. ## Created On        : Sat Apr 27 06:36:31 1996
  6. ## Created On Node  : melkor.pilgrim.umass.edu
  7. ## Last Modified By : Manoj Srivastava
  8. ## Last Modified On : Fri Oct 28 16:15:55 2005
  9. ## Last Machine Used: glaurung.internal.golden-gryphon.com
  10. ## Update Count        : 973
  11. ## Status        : Unknown, Use with caution!
  12. ## HISTORY        :
  13. ## Description        :
  14. ## arch-tag: aa70d4e5-79bf-405c-95ec-5fa9f7ae7b69
  15. ## 
  16. ## This program is free software; you can redistribute it and/or modify
  17. ## it under the terms of the GNU General Public License as published by
  18. ## the Free Software Foundation; either version 2 of the License, or
  19. ## (at your option) any later version.
  20. ##
  21. ## This program is distributed in the hope that it will be useful,
  22. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  24. ## GNU General Public License for more details.
  25. ##
  26. ## You should have received a copy of the GNU General Public License
  27. ## along with this program; if not, write to the Free Software
  28. ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  29. ##
  30. ###############################################################################
  31.  
  32. # The version of kernel-package this belongs to
  33. kpkg_version := 10.065ubuntu5
  34.  
  35. # Where the package libs are stored
  36. LIBLOC     :=/usr/share/kernel-package
  37.  
  38. define which_debdir
  39. DEBDIR=$(shell if test -f ./debian/ruleset/kernel_version.mk; then echo ./debian;     \
  40.                                                               else echo $(LIBLOC); fi)
  41. endef
  42.  
  43. define deb_rule
  44. $(eval $(which_debdir))
  45.   run_command=$(MAKE) -f $(DEBDIR)/rules
  46.   ifeq ($(strip $(int_am_root)),)
  47.     root_run_command=$(ROOT_CMD) $(MAKE) -f $(DEBDIR)/rules
  48.   else
  49.     root_run_command=$(MAKE) -f $(DEBDIR)/rules
  50.   endif
  51. endef
  52.  
  53. # determine  the architecture for package building
  54. $(eval $(which_debdir))
  55. include $(DEBDIR)/ruleset/common/archvars.mk
  56. # Set variables with information extracted from control and changelog files
  57. include $(DEBDIR)/ruleset/common/pkgvars.mk
  58. # Install commands
  59. include $(DEBDIR)/ruleset/common/install_cmds.mk
  60. # we use debconf
  61. include $(DEBDIR)/ruleset/common/debconf.mk
  62. # Do the local variable setting here
  63. include $(DEBDIR)/ruleset/local-vars.mk
  64.  
  65. # export variables
  66. export root_cmd FLAVOUR INT_SUBARCH APPEND_TO_VERSION UNSIGN_CHANGELOG  \
  67.        UNSIGN_SOURCE ROOT_CMD MODULE_LOC EXTRAVERSION ALL_PATCH_DIR     \
  68.        ALL_PATCH_APPLY ALL_PATCH_UNPATCH DIR_PATCH_UNPATCH              \
  69.        DIR_PATCH_APPLY VERSIONED_PATCH_DIR VERSIONED_ALL_PATCH_UNPATCH  \
  70.        VERSIONED_ALL_PATCH_APPLY VERSIONED_DIR_PATCH_UNPATCH            \
  71.        VERSIONED_DIR_PATCH_APPLY KPKG_SELECTED_PATCHES                  \
  72.        KPKG_SELECTED_MODULES CONCURRENCY_LEVEL kpkg_version
  73.  
  74. all:
  75.     $(eval $(which_debdir))
  76.     @echo nothing to be done.
  77.  
  78. $(eval $(which_debdir))
  79. include $(DEBDIR)/ruleset/common/targets.mk
  80. include $(DEBDIR)/ruleset/local.mk
  81.  
  82. test:
  83.     $(eval $(which_debdir))
  84.     echo version: $(version)
  85.     echo KPKG_ARCH: $(KPKG_ARCH)
  86.     echo $(DEB_BUILD_ARCH)
  87.     echo $(DEB_BUILD_GNU_CPU)
  88.     echo $(DEB_BUILD_GNU_TYPE)
  89.     echo $(DEB_HOST_ARCH)
  90.     echo $(DEB_HOST_GNU_CPU)
  91.     echo $(DEB_HOST_GNU_SYSTEM)
  92.     echo $(DEB_HOST_GNU_TYPE)
  93.     echo $(DEB_BUILD_GNU_SYSTEM)
  94.  
  95. #Local variables:
  96. #mode: makefile
  97. #End:
  98.